package com.lqf.redpackage.dao;

import com.lqf.redpackage.domain.TUserRedPacket;
import com.lqf.redpackage.domain.TUserRedPacketExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.session.RowBounds;
import org.springframework.stereotype.Repository;

@Repository
public interface TUserRedPacketMapper {
    long countByExample(TUserRedPacketExample example);

    int deleteByExample(TUserRedPacketExample example);

    int deleteByPrimaryKey(Integer id);

    int insert(TUserRedPacket record);

    int insertSelective(TUserRedPacket record);

    List<TUserRedPacket> selectByExampleWithRowbounds(TUserRedPacketExample example, RowBounds rowBounds);

    List<TUserRedPacket> selectByExample(TUserRedPacketExample example);

    TUserRedPacket selectByPrimaryKey(Integer id);

    int updateByExampleSelective(@Param("record") TUserRedPacket record, @Param("example") TUserRedPacketExample example);

    int updateByExample(@Param("record") TUserRedPacket record, @Param("example") TUserRedPacketExample example);

    int updateByPrimaryKeySelective(TUserRedPacket record);

    int updateByPrimaryKey(TUserRedPacket record);
    /**
     * 插入抢红包信息.
     * @param userRedPacket ——抢红包信息
     * @return 影响记录数.
     */
    int grapRedPacket(TUserRedPacket  userRedPacket);
}